﻿using RuoVea.GoFastdfs.Dto;
using RuoVea.GoFastdfs.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuoVea.GoFastdfs.Service.Inserface
{
    /// <summary>
    /// 集群表, 逻辑处理
    /// </summary>
    public interface IRuoveadService
    {
        public RuoveadEntiy getById(int id);

        public PageResult<RuoveadEntiy> listPage(int page, int limit);

        public List<RuoveadEntiy> list();

        /// <summary>
        /// 检查集群是否已存在
        /// </summary>
        /// <param name="serverAddress"></param>
        /// <returns></returns>
        public Boolean checkRuovead(String serverAddress);

        /// <summary>
        /// 新增集群
        /// </summary>
        /// <param name="peers"></param>
        /// <returns></returns>
        public Boolean addRuovead(RuoveadEntiy ruovead);

        /// <summary>
        /// 根据id删除集群
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Boolean delRuoveadById(int id);
    }
}
